﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ufida.u9.ait.openapi.utils
{
    internal class AITException:Exception
    {
        public int ErrorCode { get; set; }
        public AITException(String message) : base(message)
        {
            this.ErrorCode = 500;
        }

        public AITException(int errCode,String message):base(message)
        {
            this.ErrorCode = errCode;
        }
        
        public AITException(int errCode,String message,Exception innerException) 
            : base(message, innerException)
        {
            this.ErrorCode=errCode;
        }

    }
}
